package com.hzw.saas.service.tripartite.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hzw.saas.common.config.model.BaseLogicModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user_tripartite")
public class UserWeTripartite extends BaseLogicModel {
    @ApiModelProperty(value = "system表中的模块名称")
    private String module;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("微信应用唯一标识")
    private String openId;

    @ApiModelProperty("微信用户唯一标识")
    private String unionId;

    @ApiModelProperty("三方token")
    private String accessToken;

    @ApiModelProperty("三方token有效期，单位分钟")
    private Integer expiresIn;

    @ApiModelProperty("刷新登陆令牌")
    private String refreshToken;

    @ApiModelProperty("刷新令牌有效期，单位分钟")
    private Integer termOfValidity;

    @ApiModelProperty(value = "普通用户昵称")
    private String nickname;
}
